﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WaterRevenueMS.Domain.Common.Models;
using System.ComponentModel.DataAnnotations;

namespace WaterRevenueMS.Domain.ViewModels.BasicSet.WaterCaliber
{
    public class WaterCaliberModel : EntityCommon
    {
        public WaterCaliberModel()
        {
            Search = new SearchModel();

        }

        public int Id { get; set; }
        [Display(Name="口径名称")]
        [Required(ErrorMessage="口径名称不能为空")]
        [StringLength(16,ErrorMessage="口径名称不能大于16个字节")]
        public string Shui_BKJ { get; set; }
        [RegularExpression(@"\d+", ErrorMessage = "必须是数字")]
        public byte DefaultValue { get; set; }

        [Display(Name="排序序号")]
        public int OrderNo { get; set; }
        [RegularExpression(@"\d+", ErrorMessage = "必须是数字")]
        [Display(Name="翻表最大值")]
        public int Fan_BZDZ { get; set; }
        [RegularExpression(@"\d+", ErrorMessage = "必须是数字")]
        [Display(Name="报警最大值")]
        public int Bao_JZDZ { get; set; }

        [Display(Name="保修费用")]
        public float Bao_XFY { get; set; }
        [Display(Name = "拆表费用")]
        public float Chai_BFY { get; set; }

        public SearchModel Search { get; set; }
    }
    public class SearchModel
    {
        public SearchModel()
        {

        }

        [Display(Name = "口径名称")]
        public string Shui_BKJ { get; set; }
    }
}
